﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
    public partial class SubscriptionHistory
    {

        #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion
        public SubscriptionHistory(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateMerchantSubscription(this);
        }
        public void UpdatePaymentStatus()
        {
            _dataObject.UpdatePaymentStatus(this);
        }
        public void GetSubscriptionHistoryById()
        {
            _dataObject.GetSubscriptionHistoryById(this);
        }
        public
            List<SubscriptionHistory> GetSubscriptionHistoryByMerchantId()
        {
            return _dataObject.GetSubscriptionHistoryByMerchantId(this);
        }
    }
}
